const express = require('express')
const loginController = require('../controller/LoginController')
const router = express.Router()
const expressJoi = require('@escook/express-joi')

const {loginValidation} = require('../util/LoginValidation')

router.post('/register', expressJoi(loginValidation), loginController.register)
router.post('/login', expressJoi(loginValidation), loginController.login)


module.exports = router